import Request from '@/utils/request';

/**
 * 业务领域表api
 *
 * @author jizhongbao
 * @date 2022/01/10 15:07
 */
export class BusinessAreaApi {
  /**
   * 新增
   *
   * @author jizhongbao
   * @date 2022/01/10 15:07
   */
  static add(params) {
    return Request.post('/businessArea/add', params);
  }

  /**
   * 修改
   *
   * @author jizhongbao
   * @date 2022/01/10 15:07
   */
  static edit(params) {
    return Request.post('/businessArea/edit', params);
  }

  /**
   * 修改状态
   *
   * @author jizhongbao
   * @date 2022/01/10 15:07
   */
   static changeStatus(params) {
    return Request.post('/businessArea/changeStatus', params);
  }

  /**
   * 删除
   *
   * @author jizhongbao
   * @date 2022/01/10 15:07
   */
  static delete(params) {
    return Request.post('/businessArea/delete', params);
  }

  /**
   * 详情
   *
   * @author jizhongbao
   * @date 2022/01/10 15:07
   */
  static detail(params) {
    return Request.getAndLoadData('/businessArea/detail', params);
  }
}
